/* 全局样式 */
:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --accent-color: #ffbe0b;
  --text-color: #333;
  --light-text: #666;
  --background-color: #f9f9f9;
  --card-background: #fff;
  --border-color: #eaeaea;
  --day1-color: #4361ee;
  --day2-color: #3a86ff;
  --day3-color: #7209b7;
  --day4-color: #f72585;
  --food-color: #4ecdc4;
  --tips-color: #ffbe0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* 头部样式 */
.header {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 40px 20px;
  text-align: center;
  border-radius: 0 0 20px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 导航样式 */
.nav {
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow-x: auto;
  position: sticky;
  top: 10px;
  z-index: 100;
}

.nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  min-width: max-content;
}

.nav li {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav li:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav li.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav li.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

/* 内容区域样式 */
.content {
  background-color: var(--card-background);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.content h2 {
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  color: var(--primary-color);
  font-size: 1.8rem;
}

/* 概览卡片样式 */
.overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.day-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.day-card:hover {
  transform: translateY(-5px);
}

.day-header {
  color: white;
  padding: 15px;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
}

.day1-header {
  background-color: var(--day1-color);
}

.day2-header {
  background-color: var(--day2-color);
}

.day3-header {
  background-color: var(--day3-color);
}

.day4-header {
  background-color: var(--day4-color);
}

.day-content {
  padding: 15px;
}

.day-theme {
  margin-top: 10px;
  font-style: italic;
  color: var(--light-text);
}

/* 垂直时间线样式 */
.vertical-timeline {
  position: relative;
  margin: 30px 0;
}

.vertical-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.timeline-image {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.timeline-image img:hover {
  transform: scale(1.05);
}

.timeline-info-container {
  display: flex;
  width: 100%;
  justify-content: space-between;
  flex-wrap: wrap;
}

.timeline-info-left, .timeline-info-right {
  flex: 1;
  min-width: 250px;
  padding: 15px;
}

.timeline-info-left h3, .timeline-info-right h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.3rem;
}

.info-label {
  font-weight: bold;
  color: var(--primary-color);
}

.timeline-connector {
  position: relative;
  height: 40px;
  margin-top: 10px;
}

.connector-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.connector-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--accent-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 2;
}

/* 美食部分样式 */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.food-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.food-card:hover {
  transform: translateY(-5px);
}

.food-image {
  height: 200px;
  overflow: hidden;
}

.food-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.food-image img:hover {
  transform: scale(1.05);
}

.food-info {
  padding: 20px;
}

.food-info h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.spicy-level {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-left: 10px;
}

.souvenirs-section {
  margin-top: 40px;
}

/* 温馨提示样式 */
.tips-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.tips-card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tips-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.tips-card ul {
  padding-left: 20px;
}

.tips-card li {
  margin-bottom: 8px;
}

.weather-forecast {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
  flex-wrap: wrap;
}

.weather-day {
  text-align: center;
  padding: 10px;
  background-color: rgba(78, 205, 196, 0.1);
  border-radius: 8px;
  min-width: 100px;
}

.weather-icon {
  font-size: 2rem;
  margin: 5px 0;
}

.weather-date {
  font-weight: bold;
}

/* 编辑模式按钮 */
.edit-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.edit-mode-toggle:hover {
  background-color: #e05a5a;
  transform: scale(1.05);
}

/* 页脚样式 */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--light-text);
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .content {
    padding: 20px;
  }
  
  .vertical-timeline::before {
    left: 30px;
  }
  
  .timeline-content {
    flex-direction: column;
  }
  
  .timeline-info-left, .timeline-info-right {
    width: 100%;
  }
  
  .connector-text {
    left: 30px;
    transform: translateY(-50%);
  }
  
  .connector-line {
    left: 30px;
    transform: none;
  }
  
  .weather-day {
    min-width: 80px;
    padding: 8px;
    font-size: 0.9rem;
  }
}

@media (min-width: 769px) {
  .timeline-content {
    flex-direction: column;
  }
  
  .timeline-info-container {
    display: flex;
    width: 100%;
  }
  
  .timeline-info-left, .timeline-info-right {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 30px 15px;
  }
  
  .header h1 {
    font-size: 1.8rem;
  }
  
  .nav li {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .content {
    padding: 15px;
  }
  
  .timeline-image {
    max-width: 100%;
  }
  
  .weather-day {
    min-width: 70px;
    padding: 6px;
    font-size: 0.8rem;
  }
}
